import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
<<<<<<< HEAD
// import RankView from '../views/RankView'
import SingerHome from '../components/singer/SingerHome.vue'
=======
<<<<<<< HEAD
=======
import AboutView from '../views/AboutView.vue'
import SingerSong from '../components/singersong/SingerSong.vue'


>>>>>>> 8b1caf6 (热门歌曲)

>>>>>>> 53f4939bc547b2471ee979ef8d2248c82943ff20
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },

  {
<<<<<<< HEAD
    path: '/singer/:id',
    name: 'singer',
    component: SingerHome
=======
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
<<<<<<< HEAD
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
=======
    // 
    component: AboutView
  },
  {
    path: '/singsong/:id',
    name: '/singersong',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: SingerSong
>>>>>>> 8b1caf6 (热门歌曲)
>>>>>>> 53f4939bc547b2471ee979ef8d2248c82943ff20
  }
  // {
  //   path: '/rank',
  //   name: 'rank',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: RankView
  // }
]

const router = new VueRouter({
<<<<<<< HEAD
  mode: 'history',
  base: process.env.BASE_URL,
=======
<<<<<<< HEAD
=======
  mode: 'history',
  base: process.env.BASE_URL,
>>>>>>> 8b1caf6 (热门歌曲)
>>>>>>> 53f4939bc547b2471ee979ef8d2248c82943ff20
  routes
})

export default router